package com.zhouyy.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * <p> 水果 </p>
 *
 * @author zhouyy
 * @description
 * @date 2024/03/25 20:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("水果-查询参数")
public class FruitDTO {

    /**
     * 苹果数量
     */
    @NotNull(message = "苹果数量不能为空")
    @Min(value = 0, message = "苹果数量不能小于{value}")
    @ApiModelProperty(value = "苹果数量", required = true, example = "1")
    private Integer appleNum;

    /**
     * 草莓数量
     */
    @NotNull(message = "草莓数量不能为空")
    @Min(value = 0, message = "草莓数量不能小于{value}")
    @ApiModelProperty(value = "草莓数量", required = true, example = "1")
    private Integer strawberryNum;

    /**
     * 芒果数量
     */
    @NotNull(message = "芒果数量不能为空")
    @Min(value = 0, message = "芒果数量不能小于{value}")
    @ApiModelProperty(value = "芒果数量", required = true, example = "1")
    private Integer mangoNum;
}
